<html>
<head>
    <title>Number.js Source Code | Sencha Test 1.0.3</title>
    <!--  Generated on  -->
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="css/styles.css">
</head>
<body>
    <pre class="editor editor-colors"><div class="line"><a name="line1"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line2"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@class</span></span><span>&nbsp;Number</span></span></span></div><div class="line"><a name="line3"><a name="Number"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line4"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Creates&nbsp;a&nbsp;wrapper&nbsp;object&nbsp;to&nbsp;allow&nbsp;you&nbsp;to&nbsp;work&nbsp;with&nbsp;numerical&nbsp;values.</span></span></span></div><div class="line"><a name="line5"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line6"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;primary&nbsp;uses&nbsp;for&nbsp;the&nbsp;`Number`&nbsp;object&nbsp;are:</span></span></span></div><div class="line"><a name="line7"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line8"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;the&nbsp;argument&nbsp;cannot&nbsp;be&nbsp;converted&nbsp;into&nbsp;a&nbsp;number,&nbsp;it&nbsp;returns&nbsp;`NaN`.</span></span></span></div><div class="line"><a name="line9"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line10"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;In&nbsp;a&nbsp;non-constructor&nbsp;context&nbsp;(i.e.,&nbsp;without&nbsp;the&nbsp;`new`&nbsp;operator),&nbsp;`Number`&nbsp;can</span></span></span></div><div class="line"><a name="line11"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;be&nbsp;used&nbsp;to&nbsp;perform&nbsp;a&nbsp;type&nbsp;conversion.</span></span></span></div><div class="line"><a name="line12"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line13"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;#&nbsp;Using&nbsp;the&nbsp;`Number`&nbsp;object&nbsp;to&nbsp;assign&nbsp;values&nbsp;to&nbsp;numeric&nbsp;variables</span></span></span></div><div class="line"><a name="line14"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line15"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;uses&nbsp;the&nbsp;`Number`&nbsp;object&#39;s&nbsp;properties&nbsp;to&nbsp;assign&nbsp;values&nbsp;to</span></span></span></div><div class="line"><a name="line16"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;several&nbsp;numeric&nbsp;variables:</span></span></span></div><div class="line"><a name="line17"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line18"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;biggestNum&nbsp;=&nbsp;Number.MAX_VALUE;</span></span></span></div><div class="line"><a name="line19"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smallestNum&nbsp;=&nbsp;Number.MIN_VALUE;</span></span></span></div><div class="line"><a name="line20"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;infiniteNum&nbsp;=&nbsp;Number.POSITIVE_INFINITY;</span></span></span></div><div class="line"><a name="line21"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;negInfiniteNum&nbsp;=&nbsp;Number.NEGATIVE_INFINITY;</span></span></span></div><div class="line"><a name="line22"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;notANum&nbsp;=&nbsp;Number.NaN;</span></span></span></div><div class="line"><a name="line23"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line24"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;#&nbsp;Using&nbsp;`Number`&nbsp;to&nbsp;convert&nbsp;a&nbsp;`Date`&nbsp;object</span></span></span></div><div class="line"><a name="line25"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line26"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;converts&nbsp;the&nbsp;`Date`&nbsp;object&nbsp;to&nbsp;a&nbsp;numerical&nbsp;value&nbsp;using</span></span></span></div><div class="line"><a name="line27"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Number`&nbsp;as&nbsp;a&nbsp;function:</span></span></span></div><div class="line"><a name="line28"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line29"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;d&nbsp;=&nbsp;new&nbsp;Date(&quot;December&nbsp;17,&nbsp;1995&nbsp;03:24:00&quot;);</span></span></span></div><div class="line"><a name="line30"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(Number(d));</span></span></span></div><div class="line"><a name="line31"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line32"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;displays&nbsp;&quot;819199440000&quot;.</span></span></span></div><div class="line"><a name="line33"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line34"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;example&nbsp;converts&nbsp;the&nbsp;Date&nbsp;object&nbsp;to&nbsp;a&nbsp;numerical&nbsp;value&nbsp;using</span></span></span></div><div class="line"><a name="line35"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Number`&nbsp;as&nbsp;a&nbsp;function:</span></span></span></div><div class="line"><a name="line36"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line37"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&lt;div&nbsp;class=&quot;notice&quot;&gt;</span></span></span></div><div class="line"><a name="line38"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Documentation&nbsp;for&nbsp;this&nbsp;class&nbsp;comes&nbsp;from&nbsp;[MDN](</span><span class="markup underline link https hyperlink"><span>https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number</span></span><span>)</span></span></span></div><div class="line"><a name="line39"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;and&nbsp;is&nbsp;available&nbsp;under&nbsp;[Creative&nbsp;Commons:&nbsp;Attribution-Sharealike&nbsp;license](</span><span class="markup underline link http hyperlink"><span>http://creativecommons.org/licenses/by-sa/2.0/</span></span><span>).</span></span></span></div><div class="line"><a name="line40"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&lt;/div&gt;</span></span></span></div><div class="line"><a name="line41"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line42"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line43"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line44"><a name="Number-method-constructor"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;constructor</span></span></span></div><div class="line"><a name="line45"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Creates&nbsp;new&nbsp;Number&nbsp;object.</span></span></span></div><div class="line"><a name="line46"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;value</span></span></span></div><div class="line"><a name="line47"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;numeric&nbsp;value&nbsp;of&nbsp;the&nbsp;object&nbsp;being&nbsp;created.</span></span></span></div><div class="line"><a name="line48"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line49"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line50"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>Properties</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line51"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line52"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line53"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>MAX_VALUE</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line54"><a name="Number-static-property-MAX_VALUE"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@static</span></span></span></span></div><div class="line"><a name="line55"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;largest&nbsp;positive&nbsp;representable&nbsp;number.&nbsp;The&nbsp;largest&nbsp;negative&nbsp;representable</span></span></span></div><div class="line"><a name="line56"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;number&nbsp;is&nbsp;`-MAX_VALUE`.</span></span></span></div><div class="line"><a name="line57"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line58"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`MAX_VALUE`&nbsp;property&nbsp;has&nbsp;a&nbsp;value&nbsp;of&nbsp;approximately&nbsp;1.79E+308.&nbsp;Values&nbsp;larger&nbsp;than&nbsp;`MAX_VALUE`&nbsp;are</span></span></span></div><div class="line"><a name="line59"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;represented&nbsp;as&nbsp;`&quot;Infinity&quot;`.</span></span></span></div><div class="line"><a name="line60"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line61"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Because&nbsp;`MAX_VALUE`&nbsp;is&nbsp;a&nbsp;static&nbsp;property&nbsp;of&nbsp;`Number`,&nbsp;you&nbsp;always&nbsp;use&nbsp;it&nbsp;as&nbsp;`Number.MAX_VALUE`,</span></span></span></div><div class="line"><a name="line62"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;rather&nbsp;than&nbsp;as&nbsp;a&nbsp;property&nbsp;of&nbsp;a&nbsp;`Number`&nbsp;object&nbsp;you&nbsp;created.</span></span></span></div><div class="line"><a name="line63"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line64"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;code&nbsp;multiplies&nbsp;two&nbsp;numeric&nbsp;values.&nbsp;If&nbsp;the&nbsp;result&nbsp;is&nbsp;less&nbsp;than&nbsp;or&nbsp;equal&nbsp;to</span></span></span></div><div class="line"><a name="line65"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`MAX_VALUE`,&nbsp;the&nbsp;`func1`&nbsp;function&nbsp;is&nbsp;called;&nbsp;otherwise,&nbsp;the&nbsp;`func2`&nbsp;function&nbsp;is&nbsp;called.</span></span></span></div><div class="line"><a name="line66"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line67"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(num1&nbsp;*&nbsp;num2&nbsp;&lt;=&nbsp;Number.MAX_VALUE)</span></span></span></div><div class="line"><a name="line68"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;func1();</span></span></span></div><div class="line"><a name="line69"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else</span></span></span></div><div class="line"><a name="line70"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;func2();</span></span></span></div><div class="line"><a name="line71"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line72"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line73"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line74"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>MIN_VALUE</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line75"><a name="Number-static-property-MIN_VALUE"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@static</span></span></span></span></div><div class="line"><a name="line76"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;smallest&nbsp;positive&nbsp;representable&nbsp;number&nbsp;--&nbsp;that&nbsp;is,&nbsp;the&nbsp;positive&nbsp;number</span></span></span></div><div class="line"><a name="line77"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;closest&nbsp;to&nbsp;zero&nbsp;(without&nbsp;actually&nbsp;being&nbsp;zero).&nbsp;The&nbsp;smallest&nbsp;negative</span></span></span></div><div class="line"><a name="line78"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;representable&nbsp;number&nbsp;is&nbsp;`-MIN_VALUE`.</span></span></span></div><div class="line"><a name="line79"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line80"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`MIN_VALUE`&nbsp;property&nbsp;is&nbsp;the&nbsp;number&nbsp;closest&nbsp;to&nbsp;0,&nbsp;not&nbsp;the&nbsp;most&nbsp;negative&nbsp;number,&nbsp;that&nbsp;JavaScript</span></span></span></div><div class="line"><a name="line81"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;can&nbsp;represent.</span></span></span></div><div class="line"><a name="line82"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line83"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`MIN_VALUE`&nbsp;has&nbsp;a&nbsp;value&nbsp;of&nbsp;approximately&nbsp;5e-324.&nbsp;Values&nbsp;smaller&nbsp;than&nbsp;`MIN_VALUE`&nbsp;(&quot;underflow</span></span></span></div><div class="line"><a name="line84"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;values&quot;)&nbsp;are&nbsp;converted&nbsp;to&nbsp;0.</span></span></span></div><div class="line"><a name="line85"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line86"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Because&nbsp;`MIN_VALUE`&nbsp;is&nbsp;a&nbsp;static&nbsp;property&nbsp;of&nbsp;`Number`,&nbsp;you&nbsp;always&nbsp;use&nbsp;it&nbsp;as&nbsp;`Number.MIN_VALUE`,</span></span></span></div><div class="line"><a name="line87"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;rather&nbsp;than&nbsp;as&nbsp;a&nbsp;property&nbsp;of&nbsp;a&nbsp;`Number`&nbsp;object&nbsp;you&nbsp;created.</span></span></span></div><div class="line"><a name="line88"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line89"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;following&nbsp;code&nbsp;divides&nbsp;two&nbsp;numeric&nbsp;values.&nbsp;If&nbsp;the&nbsp;result&nbsp;is&nbsp;greater&nbsp;than&nbsp;or&nbsp;equal&nbsp;to</span></span></span></div><div class="line"><a name="line90"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`MIN_VALUE`,&nbsp;the&nbsp;`func1`&nbsp;function&nbsp;is&nbsp;called;&nbsp;otherwise,&nbsp;the&nbsp;`func2`&nbsp;function&nbsp;is&nbsp;called.</span></span></span></div><div class="line"><a name="line91"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line92"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(num1&nbsp;/&nbsp;num2&nbsp;&gt;=&nbsp;Number.MIN_VALUE)</span></span></span></div><div class="line"><a name="line93"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;func1()</span></span></span></div><div class="line"><a name="line94"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else</span></span></span></div><div class="line"><a name="line95"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;func2()</span></span></span></div><div class="line"><a name="line96"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line97"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line98"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line99"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>NaN</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line100"><a name="Number-static-property-NaN"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@static</span></span></span></span></div><div class="line"><a name="line101"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Special&nbsp;&quot;not&nbsp;a&nbsp;number&quot;&nbsp;value.</span></span></span></div><div class="line"><a name="line102"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line103"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line104"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line105"><a name="Number-property-NEGATIVE_INFINITY"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>NEGATIVE_INFINITY</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line106"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Special&nbsp;value&nbsp;representing&nbsp;negative&nbsp;infinity;&nbsp;returned&nbsp;on&nbsp;overflow.</span></span></span></div><div class="line"><a name="line107"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line108"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;value&nbsp;of&nbsp;`Number.NEGATIVE_INFINITY`&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;the&nbsp;negative&nbsp;value&nbsp;of&nbsp;the&nbsp;global&nbsp;object&#39;s</span></span></span></div><div class="line"><a name="line109"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Infinity&nbsp;property.</span></span></span></div><div class="line"><a name="line110"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line111"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;value&nbsp;behaves&nbsp;slightly&nbsp;differently&nbsp;than&nbsp;mathematical&nbsp;infinity:</span></span></span></div><div class="line"><a name="line112"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line113"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;Any&nbsp;positive&nbsp;value,&nbsp;including&nbsp;POSITIVE_INFINITY,&nbsp;multiplied&nbsp;by&nbsp;NEGATIVE_INFINITY&nbsp;is&nbsp;NEGATIVE_INFINITY.</span></span></span></div><div class="line"><a name="line114"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;Any&nbsp;negative&nbsp;value,&nbsp;including&nbsp;NEGATIVE_INFINITY,&nbsp;multiplied&nbsp;by&nbsp;NEGATIVE_INFINITY&nbsp;is</span></span></span></div><div class="line"><a name="line115"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;POSITIVE_INFINITY.</span></span></span></div><div class="line"><a name="line116"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;Zero&nbsp;multiplied&nbsp;by&nbsp;NEGATIVE_INFINITY&nbsp;is&nbsp;NaN.</span></span></span></div><div class="line"><a name="line117"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;NaN&nbsp;multiplied&nbsp;by&nbsp;NEGATIVE_INFINITY&nbsp;is&nbsp;NaN.</span></span></span></div><div class="line"><a name="line118"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;NEGATIVE_INFINITY,&nbsp;divided&nbsp;by&nbsp;any&nbsp;negative&nbsp;value&nbsp;except&nbsp;NEGATIVE_INFINITY,&nbsp;is</span></span></span></div><div class="line"><a name="line119"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;POSITIVE_INFINITY.</span></span></span></div><div class="line"><a name="line120"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;NEGATIVE_INFINITY,&nbsp;divided&nbsp;by&nbsp;any&nbsp;positive&nbsp;value&nbsp;except&nbsp;POSITIVE_INFINITY,&nbsp;is</span></span></span></div><div class="line"><a name="line121"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;NEGATIVE_INFINITY.</span></span></span></div><div class="line"><a name="line122"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;NEGATIVE_INFINITY,&nbsp;divided&nbsp;by&nbsp;either&nbsp;NEGATIVE_INFINITY&nbsp;or&nbsp;POSITIVE_INFINITY,&nbsp;is&nbsp;NaN.</span></span></span></div><div class="line"><a name="line123"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;Any&nbsp;number&nbsp;divided&nbsp;by&nbsp;NEGATIVE_INFINITY&nbsp;is&nbsp;Zero.</span></span></span></div><div class="line"><a name="line124"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line125"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Several&nbsp;JavaScript&nbsp;methods&nbsp;(such&nbsp;as&nbsp;the&nbsp;`Number`&nbsp;constructor,&nbsp;`parseFloat`,&nbsp;and&nbsp;`parseInt`)&nbsp;return</span></span></span></div><div class="line"><a name="line126"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`NaN`&nbsp;if&nbsp;the&nbsp;value&nbsp;specified&nbsp;in&nbsp;the&nbsp;parameter&nbsp;is&nbsp;significantly&nbsp;lower&nbsp;than&nbsp;`Number.MIN_VALUE`.</span></span></span></div><div class="line"><a name="line127"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line128"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;might&nbsp;use&nbsp;the&nbsp;`Number.NEGATIVE_INFINITY`&nbsp;property&nbsp;to&nbsp;indicate&nbsp;an&nbsp;error&nbsp;condition&nbsp;that&nbsp;returns&nbsp;a</span></span></span></div><div class="line"><a name="line129"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;finite&nbsp;number&nbsp;in&nbsp;case&nbsp;of&nbsp;success.&nbsp;Note,&nbsp;however,&nbsp;that&nbsp;`isFinite`&nbsp;would&nbsp;be&nbsp;more&nbsp;appropriate&nbsp;in&nbsp;such</span></span></span></div><div class="line"><a name="line130"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;a&nbsp;case.</span></span></span></div><div class="line"><a name="line131"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line132"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;In&nbsp;the&nbsp;following&nbsp;example,&nbsp;the&nbsp;variable&nbsp;smallNumber&nbsp;is&nbsp;assigned&nbsp;a&nbsp;value&nbsp;that&nbsp;is&nbsp;smaller&nbsp;than&nbsp;the</span></span></span></div><div class="line"><a name="line133"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;minimum&nbsp;value.&nbsp;When&nbsp;the&nbsp;`if`&nbsp;statement&nbsp;executes,&nbsp;`smallNumber`&nbsp;has&nbsp;the&nbsp;value&nbsp;`&quot;-Infinity&quot;`,&nbsp;so</span></span></span></div><div class="line"><a name="line134"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`smallNumber`&nbsp;is&nbsp;set&nbsp;to&nbsp;a&nbsp;more&nbsp;manageable&nbsp;value&nbsp;before&nbsp;continuing.</span></span></span></div><div class="line"><a name="line135"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line136"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;smallNumber&nbsp;=&nbsp;(-Number.MAX_VALUE)&nbsp;*&nbsp;2</span></span></span></div><div class="line"><a name="line137"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(smallNumber&nbsp;==&nbsp;Number.NEGATIVE_INFINITY)&nbsp;{</span></span></span></div><div class="line"><a name="line138"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;smallNumber&nbsp;=&nbsp;returnFinite();</span></span></span></div><div class="line"><a name="line139"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></span></div><div class="line"><a name="line140"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line141"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line142"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line143"><a name="Number-property-POSITIVE_INFINITY"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@property</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>POSITIVE_INFINITY</span></span><span>&nbsp;</span></span></span></span></div><div class="line"><a name="line144"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Special&nbsp;value&nbsp;representing&nbsp;infinity;&nbsp;returned&nbsp;on&nbsp;overflow.</span></span></span></div><div class="line"><a name="line145"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line146"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;value&nbsp;of&nbsp;`Number.POSITIVE_INFINITY`&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;the&nbsp;value&nbsp;of&nbsp;the&nbsp;global&nbsp;object&#39;s&nbsp;Infinity</span></span></span></div><div class="line"><a name="line147"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;property.</span></span></span></div><div class="line"><a name="line148"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line149"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;value&nbsp;behaves&nbsp;slightly&nbsp;differently&nbsp;than&nbsp;mathematical&nbsp;infinity:</span></span></span></div><div class="line"><a name="line150"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line151"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;Any&nbsp;positive&nbsp;value,&nbsp;including&nbsp;POSITIVE_INFINITY,&nbsp;multiplied&nbsp;by&nbsp;POSITIVE_INFINITY&nbsp;is</span></span></span></div><div class="line"><a name="line152"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;POSITIVE_INFINITY.</span></span></span></div><div class="line"><a name="line153"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;Any&nbsp;negative&nbsp;value,&nbsp;including&nbsp;NEGATIVE_INFINITY,&nbsp;multiplied&nbsp;by&nbsp;POSITIVE_INFINITY&nbsp;is</span></span></span></div><div class="line"><a name="line154"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;NEGATIVE_INFINITY.</span></span></span></div><div class="line"><a name="line155"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;Zero&nbsp;multiplied&nbsp;by&nbsp;POSITIVE_INFINITY&nbsp;is&nbsp;NaN.</span></span></span></div><div class="line"><a name="line156"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;NaN&nbsp;multiplied&nbsp;by&nbsp;POSITIVE_INFINITY&nbsp;is&nbsp;NaN.</span></span></span></div><div class="line"><a name="line157"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;POSITIVE_INFINITY,&nbsp;divided&nbsp;by&nbsp;any&nbsp;negative&nbsp;value&nbsp;except&nbsp;NEGATIVE_INFINITY,&nbsp;is</span></span></span></div><div class="line"><a name="line158"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;NEGATIVE_INFINITY.</span></span></span></div><div class="line"><a name="line159"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;POSITIVE_INFINITY,&nbsp;divided&nbsp;by&nbsp;any&nbsp;positive&nbsp;value&nbsp;except&nbsp;POSITIVE_INFINITY,&nbsp;is</span></span></span></div><div class="line"><a name="line160"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;POSITIVE_INFINITY.</span></span></span></div><div class="line"><a name="line161"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;POSITIVE_INFINITY,&nbsp;divided&nbsp;by&nbsp;either&nbsp;NEGATIVE_INFINITY&nbsp;or&nbsp;POSITIVE_INFINITY,&nbsp;is&nbsp;NaN.</span></span></span></div><div class="line"><a name="line162"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;*&nbsp;&nbsp;&nbsp;Any&nbsp;number&nbsp;divided&nbsp;by&nbsp;POSITIVE_INFINITY&nbsp;is&nbsp;Zero.</span></span></span></div><div class="line"><a name="line163"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line164"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Several&nbsp;JavaScript&nbsp;methods&nbsp;(such&nbsp;as&nbsp;the&nbsp;`Number`&nbsp;constructor,&nbsp;`parseFloat`,&nbsp;and&nbsp;`parseInt`)&nbsp;return</span></span></span></div><div class="line"><a name="line165"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`NaN`&nbsp;if&nbsp;the&nbsp;value&nbsp;specified&nbsp;in&nbsp;the&nbsp;parameter&nbsp;is&nbsp;significantly&nbsp;higher&nbsp;than&nbsp;`Number.MAX_VALUE`.</span></span></span></div><div class="line"><a name="line166"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line167"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;You&nbsp;might&nbsp;use&nbsp;the&nbsp;`Number.POSITIVE_INFINITY`&nbsp;property&nbsp;to&nbsp;indicate&nbsp;an&nbsp;error&nbsp;condition&nbsp;that&nbsp;returns&nbsp;a</span></span></span></div><div class="line"><a name="line168"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;finite&nbsp;number&nbsp;in&nbsp;case&nbsp;of&nbsp;success.&nbsp;Note,&nbsp;however,&nbsp;that&nbsp;`isFinite`&nbsp;would&nbsp;be&nbsp;more&nbsp;appropriate&nbsp;in&nbsp;such</span></span></span></div><div class="line"><a name="line169"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;a&nbsp;case.</span></span></span></div><div class="line"><a name="line170"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line171"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;In&nbsp;the&nbsp;following&nbsp;example,&nbsp;the&nbsp;variable&nbsp;`bigNumber`&nbsp;is&nbsp;assigned&nbsp;a&nbsp;value&nbsp;that&nbsp;is&nbsp;larger&nbsp;than&nbsp;the</span></span></span></div><div class="line"><a name="line172"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;maximum&nbsp;value.&nbsp;When&nbsp;the&nbsp;if&nbsp;statement&nbsp;executes,&nbsp;`bigNumber`&nbsp;has&nbsp;the&nbsp;value&nbsp;&quot;Infinity&quot;,&nbsp;so&nbsp;`bigNumber`</span></span></span></div><div class="line"><a name="line173"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;is&nbsp;set&nbsp;to&nbsp;a&nbsp;more&nbsp;manageable&nbsp;value&nbsp;before&nbsp;continuing.</span></span></span></div><div class="line"><a name="line174"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line175"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;bigNumber&nbsp;=&nbsp;Number.MAX_VALUE&nbsp;*&nbsp;2</span></span></span></div><div class="line"><a name="line176"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(bigNumber&nbsp;==&nbsp;Number.POSITIVE_INFINITY)&nbsp;{</span></span></span></div><div class="line"><a name="line177"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;bigNumber&nbsp;=&nbsp;returnFinite();</span></span></span></div><div class="line"><a name="line178"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></span></span></div><div class="line"><a name="line179"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line180"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line181"><span class="source js"><span class="comment line double-slash js"><span class="punctuation definition comment js"><span>//</span></span><span>Methods</span><span>&nbsp;</span></span></span></div><div class="line"><a name="line182"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line183"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line184"><a name="Number-method-toExponential"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toExponential</span></span></span></div><div class="line"><a name="line185"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;number&nbsp;in&nbsp;exponential&nbsp;notation.</span></span></span></div><div class="line"><a name="line186"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line187"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;A&nbsp;string&nbsp;representing&nbsp;a&nbsp;`Number`&nbsp;object&nbsp;in&nbsp;exponential&nbsp;notation&nbsp;with&nbsp;one&nbsp;digit&nbsp;before&nbsp;the&nbsp;decimal</span></span></span></div><div class="line"><a name="line188"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;point,&nbsp;rounded&nbsp;to&nbsp;`fractionDigits`&nbsp;digits&nbsp;after&nbsp;the&nbsp;decimal&nbsp;point.&nbsp;If&nbsp;the&nbsp;`fractionDigits`&nbsp;argument</span></span></span></div><div class="line"><a name="line189"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;is&nbsp;omitted,&nbsp;the&nbsp;number&nbsp;of&nbsp;digits&nbsp;after&nbsp;the&nbsp;decimal&nbsp;point&nbsp;defaults&nbsp;to&nbsp;the&nbsp;number&nbsp;of&nbsp;digits&nbsp;necessary</span></span></span></div><div class="line"><a name="line190"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;to&nbsp;represent&nbsp;the&nbsp;value&nbsp;uniquely.</span></span></span></div><div class="line"><a name="line191"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line192"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;you&nbsp;use&nbsp;the&nbsp;`toExponential`&nbsp;method&nbsp;for&nbsp;a&nbsp;numeric&nbsp;literal&nbsp;and&nbsp;the&nbsp;numeric&nbsp;literal&nbsp;has&nbsp;no&nbsp;exponent</span></span></span></div><div class="line"><a name="line193"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;and&nbsp;no&nbsp;decimal&nbsp;point,&nbsp;leave&nbsp;a&nbsp;space&nbsp;before&nbsp;the&nbsp;dot&nbsp;that&nbsp;precedes&nbsp;the&nbsp;method&nbsp;call&nbsp;to&nbsp;prevent&nbsp;the&nbsp;dot</span></span></span></div><div class="line"><a name="line194"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;from&nbsp;being&nbsp;interpreted&nbsp;as&nbsp;a&nbsp;decimal&nbsp;point.</span></span></span></div><div class="line"><a name="line195"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line196"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;a&nbsp;number&nbsp;has&nbsp;more&nbsp;digits&nbsp;that&nbsp;requested&nbsp;by&nbsp;the&nbsp;`fractionDigits`&nbsp;parameter,&nbsp;the&nbsp;number&nbsp;is&nbsp;rounded</span></span></span></div><div class="line"><a name="line197"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;to&nbsp;the&nbsp;nearest&nbsp;number&nbsp;represented&nbsp;by&nbsp;`fractionDigits`&nbsp;digits.&nbsp;See&nbsp;the&nbsp;discussion&nbsp;of&nbsp;rounding&nbsp;in&nbsp;the</span></span></span></div><div class="line"><a name="line198"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;description&nbsp;of&nbsp;the&nbsp;`toFixed`&nbsp;method,&nbsp;which&nbsp;also&nbsp;applies&nbsp;to&nbsp;`toExponential`.</span></span></span></div><div class="line"><a name="line199"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line200"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;num=77.1234;</span></span></span></div><div class="line"><a name="line201"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line202"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;num.toExponential()&nbsp;is&nbsp;&quot;&nbsp;+&nbsp;num.toExponential());&nbsp;//displays&nbsp;7.71234e+1</span></span></span></div><div class="line"><a name="line203"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line204"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;num.toExponential(4)&nbsp;is&nbsp;&quot;&nbsp;+&nbsp;num.toExponential(4));&nbsp;//displays&nbsp;7.7123e+1</span></span></span></div><div class="line"><a name="line205"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line206"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;num.toExponential(2)&nbsp;is&nbsp;&quot;&nbsp;+&nbsp;num.toExponential(2));&nbsp;//displays&nbsp;7.71e+1</span></span></span></div><div class="line"><a name="line207"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line208"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;77.1234.toExponential()&nbsp;is&nbsp;&quot;&nbsp;+&nbsp;77.1234.toExponential());&nbsp;//displays&nbsp;7.71234e+1</span></span></span></div><div class="line"><a name="line209"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line210"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;alert(&quot;77&nbsp;.toExponential()&nbsp;is&nbsp;&quot;&nbsp;+&nbsp;77&nbsp;.toExponential());&nbsp;//displays&nbsp;7.7e+1</span></span></span></div><div class="line"><a name="line211"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line212"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>fractionDigits</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;specifying&nbsp;the&nbsp;number&nbsp;of&nbsp;digits&nbsp;after&nbsp;the&nbsp;decimal</span></span></span></span></span></div><div class="line"><a name="line213"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;point.&nbsp;Defaults&nbsp;to&nbsp;as&nbsp;many&nbsp;digits&nbsp;as&nbsp;necessary&nbsp;to&nbsp;specify&nbsp;the&nbsp;number.</span></span></span></div><div class="line"><a name="line214"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>Exponential</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>notation&nbsp;of&nbsp;number.</span></span></span></span></span></div><div class="line"><a name="line215"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line216"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line217"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line218"><a name="Number-method-toFixed"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toFixed</span></span></span></div><div class="line"><a name="line219"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;number&nbsp;in&nbsp;fixed-point&nbsp;notation.</span></span></span></div><div class="line"><a name="line220"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line221"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>A</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>string&nbsp;representation&nbsp;of&nbsp;`number`&nbsp;that&nbsp;does&nbsp;not&nbsp;use</span></span></span></span></span></div><div class="line"><a name="line222"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;exponential&nbsp;notation&nbsp;and&nbsp;has&nbsp;exactly&nbsp;`digits`&nbsp;digits&nbsp;after&nbsp;the&nbsp;decimal&nbsp;place.</span></span></span></div><div class="line"><a name="line223"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;number&nbsp;is&nbsp;rounded&nbsp;if&nbsp;necessary,&nbsp;and&nbsp;the&nbsp;fractional&nbsp;part&nbsp;is&nbsp;padded&nbsp;with</span></span></span></div><div class="line"><a name="line224"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;zeros&nbsp;if&nbsp;necessary&nbsp;so&nbsp;that&nbsp;it&nbsp;has&nbsp;the&nbsp;specified&nbsp;length.&nbsp;If&nbsp;`number`&nbsp;is&nbsp;greater</span></span></span></div><div class="line"><a name="line225"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;than&nbsp;1e+21,&nbsp;this&nbsp;method&nbsp;simply&nbsp;calls&nbsp;`Number.toString()`&nbsp;and&nbsp;returns&nbsp;a&nbsp;string</span></span></span></div><div class="line"><a name="line226"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;in&nbsp;exponential&nbsp;notation.</span></span></span></div><div class="line"><a name="line227"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line228"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>digits</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>The&nbsp;number&nbsp;of&nbsp;digits&nbsp;to&nbsp;appear&nbsp;after&nbsp;the&nbsp;decimal&nbsp;point;&nbsp;this&nbsp;may&nbsp;be&nbsp;a</span></span></span></span></span></div><div class="line"><a name="line229"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;value&nbsp;between&nbsp;0&nbsp;and&nbsp;20,&nbsp;inclusive,&nbsp;and&nbsp;implementations&nbsp;may&nbsp;optionally&nbsp;support&nbsp;a&nbsp;larger&nbsp;range&nbsp;of</span></span></span></div><div class="line"><a name="line230"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;values.&nbsp;If&nbsp;this&nbsp;argument&nbsp;is&nbsp;omitted,&nbsp;it&nbsp;is&nbsp;treated&nbsp;as&nbsp;0.</span></span></span></div><div class="line"><a name="line231"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line232"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line233"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line234"><a name="Number-method-toLocaleString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toLocaleString</span></span></span></div><div class="line"><a name="line235"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;a&nbsp;human&nbsp;readable&nbsp;string&nbsp;representing&nbsp;the&nbsp;number&nbsp;using&nbsp;the&nbsp;locale&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line236"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;environment.&nbsp;Overrides&nbsp;the&nbsp;`Object.prototype.toLocaleString`&nbsp;method.</span></span></span></div><div class="line"><a name="line237"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line238"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;method&nbsp;available&nbsp;to&nbsp;numbers&nbsp;will&nbsp;convert&nbsp;the&nbsp;number&nbsp;into&nbsp;a&nbsp;string&nbsp;which&nbsp;is&nbsp;suitable&nbsp;for</span></span></span></div><div class="line"><a name="line239"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;presentation&nbsp;in&nbsp;the&nbsp;given&nbsp;locale.</span></span></span></div><div class="line"><a name="line240"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line241"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;number&nbsp;=&nbsp;3500</span></span></span></div><div class="line"><a name="line242"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;console.log(number.toLocaleString());&nbsp;//&nbsp;Displays&nbsp;&quot;3,500&quot;&nbsp;in&nbsp;English&nbsp;locale</span></span></span></div><div class="line"><a name="line243"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line244"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>String</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>representing&nbsp;the&nbsp;number.</span></span></span></span></span></div><div class="line"><a name="line245"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line246"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line247"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line248"><a name="Number-method-toPrecision"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toPrecision</span></span></span></div><div class="line"><a name="line249"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;number&nbsp;to&nbsp;a&nbsp;specified&nbsp;precision&nbsp;in&nbsp;fixed-</span></span></span></div><div class="line"><a name="line250"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;point&nbsp;or&nbsp;exponential&nbsp;notation.</span></span></span></div><div class="line"><a name="line251"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line252"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;A&nbsp;string&nbsp;representing&nbsp;a&nbsp;`Number`&nbsp;object&nbsp;in&nbsp;fixed-point&nbsp;or</span></span></span></div><div class="line"><a name="line253"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;exponential&nbsp;notation&nbsp;rounded&nbsp;to&nbsp;precision&nbsp;significant&nbsp;digits.&nbsp;See&nbsp;the</span></span></span></div><div class="line"><a name="line254"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;discussion&nbsp;of&nbsp;rounding&nbsp;in&nbsp;the&nbsp;description&nbsp;of&nbsp;the&nbsp;`toFixed`&nbsp;method,&nbsp;which&nbsp;also</span></span></span></div><div class="line"><a name="line255"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;applies&nbsp;to&nbsp;`toPrecision`.</span></span></span></div><div class="line"><a name="line256"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line257"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;the&nbsp;precision&nbsp;argument&nbsp;is&nbsp;omitted,&nbsp;behaves&nbsp;as&nbsp;Number.toString.&nbsp;If&nbsp;it&nbsp;is&nbsp;a</span></span></span></div><div class="line"><a name="line258"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;non-integer&nbsp;value,&nbsp;it&nbsp;is&nbsp;rounded&nbsp;to&nbsp;the&nbsp;nearest&nbsp;integer.&nbsp;After&nbsp;rounding,&nbsp;if</span></span></span></div><div class="line"><a name="line259"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;that&nbsp;value&nbsp;is&nbsp;not&nbsp;between&nbsp;1&nbsp;and&nbsp;100&nbsp;(inclusive),&nbsp;a&nbsp;RangeError&nbsp;is&nbsp;thrown.</span></span></span></div><div class="line"><a name="line260"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line261"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>precision</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;specifying&nbsp;the&nbsp;number&nbsp;of&nbsp;significant&nbsp;digits.</span></span></span></span></span></div><div class="line"><a name="line262"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>String</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>that&nbsp;represents&nbsp;`Number`&nbsp;object.</span></span></span></span></span></div><div class="line"><a name="line263"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line264"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line265"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line266"><a name="Number-method-toString"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;toString</span></span></span></div><div class="line"><a name="line267"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;a&nbsp;string&nbsp;representing&nbsp;the&nbsp;specified&nbsp;object.&nbsp;Overrides&nbsp;the</span></span></span></div><div class="line"><a name="line268"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Object.prototype.toString`&nbsp;method.</span></span></span></div><div class="line"><a name="line269"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line270"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`Number`&nbsp;object&nbsp;overrides&nbsp;the&nbsp;`toString`&nbsp;method&nbsp;of&nbsp;the&nbsp;`Object`&nbsp;object;&nbsp;it&nbsp;does&nbsp;not&nbsp;inherit</span></span></span></div><div class="line"><a name="line271"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Object.toString`.&nbsp;For&nbsp;`Number`&nbsp;objects,&nbsp;the&nbsp;toString&nbsp;method&nbsp;returns&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;the</span></span></span></div><div class="line"><a name="line272"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;object&nbsp;in&nbsp;the&nbsp;specified&nbsp;radix.</span></span></span></div><div class="line"><a name="line273"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line274"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`toString`&nbsp;method&nbsp;parses&nbsp;its&nbsp;first&nbsp;argument,&nbsp;and&nbsp;attempts&nbsp;to&nbsp;return&nbsp;a&nbsp;string&nbsp;representation&nbsp;in</span></span></span></div><div class="line"><a name="line275"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;the&nbsp;specified&nbsp;radix&nbsp;(base).&nbsp;For&nbsp;radixes&nbsp;above&nbsp;10,&nbsp;the&nbsp;letters&nbsp;of&nbsp;the&nbsp;alphabet&nbsp;indicate&nbsp;numerals</span></span></span></div><div class="line"><a name="line276"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;greater&nbsp;than&nbsp;9.&nbsp;For&nbsp;example,&nbsp;for&nbsp;hexadecimal&nbsp;numbers&nbsp;(base&nbsp;16),&nbsp;A&nbsp;through&nbsp;F&nbsp;are&nbsp;used.</span></span></span></div><div class="line"><a name="line277"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line278"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;`toString`&nbsp;is&nbsp;given&nbsp;a&nbsp;radix&nbsp;not&nbsp;between&nbsp;2&nbsp;and&nbsp;36,&nbsp;an&nbsp;exception&nbsp;is&nbsp;thrown.</span></span></span></div><div class="line"><a name="line279"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line280"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;If&nbsp;the&nbsp;radix&nbsp;is&nbsp;not&nbsp;specified,&nbsp;JavaScript&nbsp;assumes&nbsp;the&nbsp;preferred&nbsp;radix&nbsp;is&nbsp;10.</span></span></span></div><div class="line"><a name="line281"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line282"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;count&nbsp;=&nbsp;10;</span></span></span></div><div class="line"><a name="line283"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(count.toString());&nbsp;&nbsp;&nbsp;//&nbsp;displays&nbsp;&quot;10&quot;</span></span></span></div><div class="line"><a name="line284"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print((17).toString());&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;displays&nbsp;&quot;17&quot;</span></span></span></div><div class="line"><a name="line285"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line286"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;x&nbsp;=&nbsp;7;</span></span></span></div><div class="line"><a name="line287"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(x.toString(2));&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;displays&nbsp;&quot;111&quot;</span></span></span></div><div class="line"><a name="line288"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line289"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@param</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>radix</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>An&nbsp;integer&nbsp;between&nbsp;2&nbsp;and&nbsp;36&nbsp;specifying&nbsp;the&nbsp;base&nbsp;to&nbsp;use&nbsp;for&nbsp;representing</span></span></span></span></span></div><div class="line"><a name="line290"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;numeric&nbsp;values.</span></span></span></div><div class="line"><a name="line291"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{String}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>The</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>number&nbsp;represented&nbsp;as&nbsp;a&nbsp;string.</span></span></span></span></span></div><div class="line"><a name="line292"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div><div class="line"><a name="line293"><span class="source js"><span>&nbsp;</span></span></div><div class="line"><a name="line294"><span class="source js"><span class="comment block documentation js"><span class="punctuation definition comment js"><span>/**</span></span></span></span></div><div class="line"><a name="line295"><a name="Number-method-valueOf"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@method</span></span><span>&nbsp;valueOf</span></span></span></div><div class="line"><a name="line296"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;Returns&nbsp;the&nbsp;primitive&nbsp;value&nbsp;of&nbsp;the&nbsp;specified&nbsp;object.&nbsp;Overrides&nbsp;the</span></span></span></div><div class="line"><a name="line297"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;`Object.prototype.valueOf`&nbsp;method.</span></span></span></div><div class="line"><a name="line298"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line299"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;The&nbsp;`valueOf`&nbsp;method&nbsp;of&nbsp;`Number`&nbsp;returns&nbsp;the&nbsp;primitive&nbsp;value&nbsp;of&nbsp;a&nbsp;`Number`&nbsp;object&nbsp;as&nbsp;a&nbsp;number&nbsp;data</span></span></span></div><div class="line"><a name="line300"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;type.</span></span></span></div><div class="line"><a name="line301"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line302"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;This&nbsp;method&nbsp;is&nbsp;usually&nbsp;called&nbsp;internally&nbsp;by&nbsp;JavaScript&nbsp;and&nbsp;not&nbsp;explicitly&nbsp;in&nbsp;code.</span></span></span></div><div class="line"><a name="line303"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line304"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var&nbsp;x&nbsp;=&nbsp;new&nbsp;Number();</span></span></span></div><div class="line"><a name="line305"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print(x.valueOf());&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;prints&nbsp;&quot;0&quot;</span></span></span></div><div class="line"><a name="line306"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*</span></span></span></div><div class="line"><a name="line307"><span class="source js"><span class="comment block documentation js"><span>&nbsp;*&nbsp;</span><span class="storage type class jsdoc"><span>@return</span></span><span>&nbsp;</span><span class="other meta jsdoc"><span class="entity name type instance jsdoc"><span>{Number}</span></span><span>&nbsp;</span><span class="variable other jsdoc"><span>The</span></span><span>&nbsp;</span><span class="other description jsdoc"><span>primitive&nbsp;value&nbsp;of&nbsp;the&nbsp;number.</span></span></span></span></span></div><div class="line"><a name="line308"><span class="source js"><span class="comment block documentation js"><span>&nbsp;</span><span class="punctuation definition comment js"><span>*/</span></span></span></span></div></pre>
</body>
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-1396058-28', 'auto');
    ga('send', 'pageview');

</script>
</html>
